#include <stdlib.h>
#include <stdio.h>
#include <sys/wait.h>

int main(int argc, char *argv[])
{
	int status;
	status = system("pwd");
	if(!WIFEXITED(status)) {
		printf("abnormal exit\n");
	}
	else {
		printf("the exit status is %d\n", status);
	}
	return 0;
}
